<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<form action="" method="">
			<table border="0" cellspacing="" cellpadding="">
				<tr>
					<td>用户名:</td>
					<td><input type="input_name" name="input_name" value="" /></td>
				</tr>
				<tr>
					<td>密码:</td>
					<td><input type="input_name" name="input_name"  value="" /></td>
				</tr>
				<tr>
					<td>性别:</td>
					<td><input style="margin-left:45px;" type="radio" name="input_name"  value="nan" />男
						<input style="margin-left:20px;" type="radio" name="input_name" value="nv" />女
					</td>
				</tr>
				<tr>
					<td>学院:</td>
					<td>
						<select name="select_name" style="width: 175px;">
							<option //value ="">软件技术1</option>
							<option //value ="">软件技术2</option>
							<option //value ="">软件技术3</option>
							<option //value ="">软件技术4</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>爱好:</td>
					<td>
						<input type="checkbox" name="input_name"  value="1" />吃饭
						<input type="checkbox" name="input_name"  value="1" />睡觉
						<input type="checkbox" name="input_name"  value="1" />发呆
					</td>
				</tr>
				<tr>
					<td>自我介绍:</td>
					<td><textarea rows="6px" cols="22px" >
						
					</textarea></td>
				</tr>
				<tr>
					<td></td>
					<td><button type="button" name="button_name" style="margin-left: 130px;">提交</button></td>
				</tr>
			</table>
		</form>
	</body>
	<script type="text/javascript">
		//input_name
		var input_name = document.getElementsByName('input_name')
		console.log(input_name)
		//button_name
		var button_name=document.getElementsByName('button_name')
		console.log(button_name)
		//option_name
		var select_name=document.getElementsByName('select_name')
		console.log(select_name)
		
		//tag---input_button_option
		var input=document.getElementsByTagName('input')
		console.log(input)
		var button=document.getElementsByTagName('button')
		console.log(button)
		var option=document.getElementsByTagName('option')
		console.log(option)
	</script>
</html>
